package com.eric.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author eric
 * @since 2024-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("u_r")
public class UR implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "user_role_id", type = IdType.AUTO)
    private Integer userRoleId;
    @TableField("user_id")
    private Integer userId;
    @TableField("role_id")
    private Integer roleId;
 public UR(Integer userId, Integer roleId){
     this.userId=userId;
     this.roleId=roleId;
 }

}
